package com.bluesky.plum.uimodels.standard.components;

import com.bluesky.plum.richdomain.RichDomainField;
import com.bluesky.plum.uimodels.standard.FieldUIComponent;

public class SpinBox extends FieldUIComponent {
	protected Integer min;
	protected Integer max;

	protected Integer value;

	public Integer getMin() {
		return min;
	}

	public void setMin(Integer min) {
		this.min = min;
	}

	public Integer getMax() {
		return max;
	}

	public void setMax(Integer max) {
		this.max = max;
	}

	public SpinBox(RichDomainField field) {
		super(field);
	}

	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}

	@Override
	public Object getDomainFieldValue() {

		// get the value from the target UI component.

		return getValue();

	}

	@Override
	public void setDomainFieldValue(Object value) {

		setValue((Integer) value);
	}

}
